#ifndef						 AUDIO_H
#define						 AUDIO_H

#include					<QObject>
#include					"apiAudio.h"
#include					"Recorder.h"
#include					"encoder.h"
#include					"Protocol.h"

class						 Audio : public QObject
{
	Q_OBJECT

public:
	Audio(QObject *parent = 0);
	~Audio();

public:

public:
	friend					apiAudio;
	apiAudio				*getApi();
	Recorder				&getRecorder();

private:
	Recorder				_recorder;
	Encoder					_encoder;


public slots:
	void					handleNewBuffer(short *);

signals:
	void					newPacket(Packet &);
	void					newSound(SoundPacket *);

};

#endif // NETWORK_H
